export const calcMixin = {
  data() {
    return {
    }
  },
  computed: {
    // 计算请求体，动态生成请求的body对象
    requestBody() {
      return Object.fromEntries(
        Object.entries(this.body).filter(
          ([_, value]) => value !== null && value !== ''
        )
      );
    },

  },
  methods: {
    getSerialNumber(index) {
      return (this.queryParams.pageNum - 1) * this.queryParams.pageSize + index + 1;
    },
  },
};
